#
# Be sure to run `pod lib lint OMTCoreKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'OMTCoreKit'
  s.version          = '0.1.0'
  s.summary          = '核心库'
  s.description      = '核心库，所有项目共享'

  s.homepage         = 'https://gitee.com/yizhaorong/OMTCoreKit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '昭荣伊' => '243653385@qq.com' }
  s.source           = { :git => 'https://gitee.com/yizhaorong/OMTCoreKit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'

  s.source_files = 'OMTCoreKit/Classes/Public/**/OMTCoreKit.h'
  s.public_header_files = 'OMTCoreKit/Classes/Public/**/OMTCoreKit.h'

  s.subspec 'Utils' do |ss|
    ss.source_files = 'OMTCoreKit/Classes/Public/OMT*.{h,m}'
    ss.public_header_files = 'OMTCoreKit/Classes/Public/OMT*.{h}'
    ss.exclude_files = 'OMTCoreKit/Classes/Public/OMTCoreKit.h'
  end

  s.subspec 'UIKit' do |ss|
    ss.dependency 'OMTCoreKit/Utils'
    ss.source_files = 'OMTCoreKit/Classes/Public/UI*+*.{h,m}'
    ss.public_header_files = 'OMTCoreKit/Classes/Public/UI*+*.{h}'
  end

  s.subspec 'NSFoundation' do |ss|
    ss.source_files = 'OMTCoreKit/Classes/Public/NS*+*.{h,m}'
    ss.public_header_files = 'OMTCoreKit/Classes/Public/NS*+*.{h}'
  end

  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
